﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using ExtraClub.Domain;

namespace XtraClub.Mailer.Web {
    /// <summary>
    /// Summary description for $codebehindclassname$
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class MailService : IHttpHandler {

        public void ProcessRequest(HttpContext context) {
            context.Response.ContentType = "text/plain";
            string url = context.Request.RawUrl;
            if (url.Contains(poll.DummyPageUrl)) {
                poll.RegisterCacheEntry();
            }
        }

        public bool IsReusable {
            get {
                return false;
            }
        }
    }
}
